Stop using [NSApp run]
Clean up