Exit the context manager and cleanup resources
(self, exc_type, exc_val, exc_tb)
| 468 | return self |
| 469 | |
| 470 | def __exit__(self, exc_type, exc_val, exc_tb): |
| 471 | """Exit the context manager and cleanup resources""" |
| 472 | self.close() |
| 473 | return False # Don't suppress exceptions |
| 474 | |
| 475 | def __del__(self): |
| 476 | """Ensure session is closed when object is destroyed""" |