AT+QICLOSE AT command is used to close the TCP or UDP connection.
AT+QICLOSE=<index>
AT+QICLOSE CLOSE OK