I'm trying to save the state of my program using pickle, so that I can jump to different states with objects created on a different run.
The issue is that virtually all of these objects (there are quite a few) all have logger objects, so they are all modifying files, and this screws pickling up.
Is there any way to just close all currently open file, so that I can just pickle them?