public void close() {
		try {
			this.listening = false;
			for (Socket e : sockets.toArray(new Socket[0])) {
				writeTo(e, "Server Closing..");
				e.close();
			}
			server.close();
			System.out.println("Server Closed");
		} catch (IOException e) {
			if (!e.getMessage().equals("socket closed"))
				e.printStackTrace();
		}
	}