This continuously fail telling that self.last_keepalive_heard is not defined. I guess it's a race condition, but it's happening for 100% of time now.