Alert before closing if there are unsaved changes.