fixed "disconnect" on server side
defer all actions to next tick