fix shutdownall bugs