Fixed crashing client when server is killed