catch connection_closing and req_timedout errors