Do not try to process more commands from the buffer after receiving a sh...

...utdown command.