Better error handling for uncaught exceptions.
Release 0.3.2