Exception objects with tracebacks are kept in memory, preventing garbage collection of referenced objects.