fix server module crash on client disconnected