Add null pointer check to startClosing and sendMessage methods.
Merge remote-tracking branch 'origin/master' into fordoudoumao