Fixed a deadlock when game timeouted