Ask confirmation before exiting when there are pending changes