fix debug output in shutdown() method
correctly tear down the component tree in shutdown() as the root component cannot be directly destroyed