::Errno::EPIPE and ::Timeout::Error are already rescued by send_request_cgi so I guess you don't need to rescue them here.