fixed deadlock, reworked releasing client/game and few minor changes