Shutdown hook added.