Move uncaught exception handler.
Fix unit test.
Merge pull request #186 from greboid/moveerrorhandler

Move uncaught exception handler.
Merge pull request #185 from greboid/errors

Remove (nearly all) Logger usages.
Remove Logger.