Fix handling of exception from BodyGenerator

Fixes #255

The unit test is hokey, you might not want to take that.