Added SSL read error handling to call_with_error_handling