Fix panic on read timeouts