public static void stopServer() {
		// TODO Fix bug, server not sending message to all clients
		//send message to clients informing them of server shutdown
		try 
		{
			for(int a = 0; a < clients.size(); a++)
			{
				//System.out.println("Exit: " + 
				clients.elementAt(a).setServerMessage("ServerShutdown");
				for(int b = 0; b < clients.size(); b++)
				{
					//System.out.println("Exit: " + 
					clients.elementAt(b).setServerMessage("ServerShutdown");
					for(int c = 0; c < clients.size(); c++)
					{
						//System.out.println("Exit: " + 
						clients.elementAt(c).setServerMessage("ServerShutdown");
						
					}
					for(int c = 0; c < clients.size(); c++)
					{
						//System.out.println("Exit: " + 
						clients.elementAt(c).setServerMessage("ServerShutdown");
					}
				}
			}
			registry.unbind("WhiteboardServer");
			System.exit(0);
			
		}catch (ArrayIndexOutOfBoundsException e) {
			//e.printStackTrace();
		} catch (AccessException e) {
			//e.printStackTrace();
		} catch (RemoteException e) {
			//e.printStackTrace();
		} catch (NullPointerException e) {
			e.printStackTrace();
		} catch (NotBoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
			
	}