Fixed errors when shutting down server in case of failed init
Merge pull request #173 from InMobi/svc_stop_npe

Fixed errors when shutting down server in case of failed init