A lazy connection context manager