Try pressing Alt + F4 at the same time to close the window or Ctrl + Alt + Delete and attempt to end the process. Another option is to boot to Safe Mode with Networking. The process may not be running then.
Beyond that, we really need more information to help. As thathagat requested, what is the rogue scanner's name?