Save the status to file so as to recover it