Handler for Scan Cancelled

Added a handler for when the user cancels the scan.