Add reporting of timeouts and errors in with_connection