Raise in main() on unhandled IOError / OSError
Preliminary work on darwin get_pid_fd()