fix supervisor shutdown