draftId should be destroyed when the window is destroyed