The mechanism was ruined beyond his chance to repair it in time.
There was no chance for him to fix the machine in time.