Fixed crashing when a client disconnect