Now checking when server is disconnected