fixed bug:shutdown hook