Exit with return code 2 when dialog selection was canceled

This makes it more practical to use 'cdm && exit' in a tty when you
decide to cancel when you're already in the dialog selection window.