Close all pending responses if there's an error in the read loop