respect cancel on unsaved files
(on quit or git restart) fix #531