OS X application now terminates if there is no active window any more