Looked through the code. Added a shut down button to serverWindow (does not work properly yet).