Writing status to disk