Connection pooling context manager hotfix