Make use of the newly added function get_callable_name() when reporting that an exception happened during shutdown.