CellularLib : Modem returns ERROR: line AT+USOCR=6,0

You can replace the line FreeRTOS_closesocket with Sockets_Disconnect. FreeRTOS_closesocket is not required for cellular interface.