Cancel lookup when user cancels progress dialog
(cherry picked from commit fbad2f3f85212a4bea3687a3af0eb3a909385401)