Add optional cancel button.
Fire signals on OK/Cancel.
Show confirmation dialog on quit.