private synchronized void shutdown(){
		instances--;
		System.out.println("handler shutdown");
		if (instances<1){
			//Main.control.stateServerListening();
		}
		server.handlerShutdown(this);
		onShutdown();
	}