Session garbage collection context manager