fix shutdown didn't work issue