Actually I don't think we unregister the service. Even if your bundle is stopped, it's possible that your code is still browsed through from extension points or other mechanisms. In this way, having the trace still active is pretty important. At least that's the logic I've seen throughout other examples.