documentor: Fixed editing status on failed write