Fix silent errors.

uncaught exceptions were being eaten.