Synchronize commands remaining for proper termination of GameThread