Trying to get disconnect in chat with java