Shutdown hook for embedded telemetry broker.

Should fix Michael’s redeployment issue.