fix issue with cleaning up setInterval for EphemeralSocket