fix macos launcher bug

problem was: After exiting the client on Mac OS, an error message
appeared. For unknown reason, the applescript does not behave
correctly anymore and does not run the shell script in background. It
caused the "set frontmost ..." to fail, because it was only executed
after dnc was closed.
Merge pull request #74 from duthils/macos-launcher-bug

fix macos launcher bug