Add: exit when closing main window