Null reference to allow multiple shutdown calls.

The shutdown command was looking for a null reference in order to early return but nobody was nulling the reference.
Merge pull request #1176 from square/jw/null-ref

Null reference to allow multiple shutdown calls.