prevent potential nullpointer in server startup failure scenarios
Merge pull request #687 from caskdata/feature/fix-master-shutdown-nullpointer

prevent potential nullpointer in server startup failure scenarios