Main thread takes care that everything is closed down properly.
Logger logs some small stuff.