closing to tray, gui and settings

#479