Fixed an accidently copy of sockets in HeartbeatSender that hopefully is the reason to the compile error on windows