Destructors are not guaranteed to execute in Python. You can do cleanup while the process is running, but don't rely on it to save state.