PHPC-50: Implement checking socket state handler