Unsaved work dialog now opens when trying to close an unsaved document.