Try catching errors using errno. #2