Replace modeline magic with a modal quit confirmation dialog