Sockets now totally working, next step is to clean up connection close