fix quick shutdown crash