Use SafeSaveDocument to prevent doc update conflicts