Adds missing shutdown command, to kill thread.