Adding check for mongod init file before trying to stop the service.