Be robust wrt state file saving
Be robust wrt state file saving

chmduquesne/tofbot,martinkirch/tofbot,soulaklabs/tofbot,p0nce/tofbot,tofbot/tofbot,martinkirch/tofbot,p0nce/tofbot,tofbot/tofbot,soulaklabs/tofbot