bugfix in shutdown_request handler