quit app after last window is clsed