Handle unexpected errors when reading responses

We don't want to silently crash without notifying what happens. The reason is logged, and tuple is returned as stated by the upstream function's contract.