Terminate Mac OS X app