[squash] save file state immediately when restarting