Added some more error checking to help prevent deadlocks if the user holds the hotkey in ludicrous speed mode