added a save statement

added a save statement after a worker is switched offline.