A window can now be closed by clicking on the X in the title bar. The input controller is already running in its own thread, calling the handler-functions given to it on an event's arrival.