It was not detecting the connection to event socket correctly. This change resolve the high cpu usage for event guard.