Improve reporting

Make Logger, UsageReport and exception reporting more thread safe. For details see commit messages.
Sorry about that. If you look at the individual commits (in this case the commit "Make exception reporting more thread safe") you can better see what really changed.