Add the menu path so we can actually get to our import.
Log exceptions instead of having them break everything.
Deals a little more gracefully with bad data...

... Also, fix up some messed up variables.