make sure state is persisted when workers are restarted