Fix error context manager in _close method. Promote to beta 1