@Override
	public void onClose(WebSocket socket, int arg1, String arg2, boolean arg3) {
		Client c = Server.get().getClient(socket);
		if(c != null) {
			c.disconnect();
		}
		
		if(socket != null) {
			Server.get().removeClient(socket);
		}
	}