socket disconnects after client connects