Add workaround for broken pika which cannot handle long-running connections.