Prevent unwanted exit

Ask for confirmation when user try to exit and a print is in progress