Fixes weird traceback issues with connection_or_acquire + producer_or_acquire