fix manager unexpected shutdown