Add logging Exception in shutdown

Exceptions in shutdown event are gone. So I lost my time, because of my stupid miss configuration.
This PR helps the person like me. :-)