fix for when user presses cancel at the select scanner dialog box