Uninitialize logger before exiting
_Might_ fix some issues with PMP crashing in the logger on exit.
One observed problem was that the logger thread was still doing
something while parts of the stdlib were being destroyed (?), so it
would be good to terminate the logger's thread pool.