Adjusted settings window, fixed cleanup on quit