Added class UncaughtExceptionLogger for logging of all uncaught
exceptions. #2
Fixed error where the writers were closed in the wrong order. #2