Only write the content to the form on save not on every close. Restoring from the draft will already take care of the normal close case.