Fixed syscall robustness.  Changed syscall failures to use sys_exit(-1)