handle non-finally context managers