Use vm exceptions in unit loading.

Been done for a bit, forgot to commit this since it's swimming around
in changes.