has problem with syncmanager not closing the socket and running out of ports