Ensure that we clear authentication everywhere we exit handleRequest().
Add some logging to track down import failures.

See Bug: 12171