Fixed bug on closing visualizer-window and improved keyboard listener for alt+f4 and similiar