Use ExitStack on 3.3