socket closing removed to fix communication