We are listening to a socket and have a client connected who can't escape out of it and close the socket, the +++ command is just gets transmitted to the other end.

You must enable the escape sequence using the AT#CONTERMINATE=1 command.