remove exit from osx syscalls