Transaction context manager.