cleanup startup process on osx/ios