Its driver had left for another team. Its 18-person workforce faced updating a fleet of race cars. And its sponsor-strapped owner was talking about potentially shutting down.