More error handling and fix a debug message

Fix debug message in loop under conn.readError
Add more error handling for reading a successful response