add shutdown server command

The variable 'b' is too simple.