Minor change on startapp script (MacOS X)

Temporary fix for strange crash on MacOSX. This crash was happening
whenever the user closed the application.