handle_unix_error for better error reporting.