Handle timeouts and use a connection per-worker.