Made server and client close without errors when purposefully closed
* added WindowEvent handler
* added windowClosing to Screen interface