more error handling with no modifications to okhttp