It worked before because none of the code was using `self.running`. Now it is being used in health check. Hence these extra changes.