Manually shutdown logger to ensure all log
messages are logged
Do not crash if stream does not exists anymore
Adapt asset manager to make use of the new logger