public void stop() {
		server.stop();
		int maxWait = 5000 * 5;
		int currentWait = 0;
		while (server.getState() != ServerConstants.SERVER_STATE_SHUTDOWN) {
			LOG.log(Level.INFO, "Shutting down hsqldb-server. State: " + server.getStateDescriptor());
			LOG.log(Level.INFO, name);
			LOG.log(Level.INFO, path);
			LOG.log(Level.INFO, "Waiting 5 seconds ...");
			try {
				Thread.sleep(5000);
				currentWait += 5000;
			} catch (InterruptedException interrupt) {
				LOG.log(Level.WARNING, "Shutdown interrupted.", interrupt);
				break;
			}
			if(currentWait >= maxWait) {
				LOG.info("Giving up... ;-)");
				break;
			}
		}
		if(server.getState() == ServerConstants.SERVER_STATE_SHUTDOWN) {
			LOG.log(Level.INFO, "Shutdown complete!");
		}
		server = null;
	}