Add error handler for exceptions that aren't dealt with (#26)