handle cmd+q manually (hackishly) in .app mode