fixed recovery for request errors, and improved error logging