display dialog box before shutdown - gives option to cancel