MSIR.0667 Janus Sockets ($function) failed: (reason)
This message indicates that a SOUL application issued a call to the Janus Sockets $function shown by $function, and it failed. The documentation for $function shows the return codes that can occur when it fails to complete successfully. Your application should test the return code, and if it indicates failure, should take the appropriate action.
For example, the message "Already have SOCKPMAX sockets open on port" is accompanied by return code -109 from $Sock_Conn; your application might issue $Sock_Close for another socket which is in use on the same port, or you might avoid that failure in the future by using a different SOCKPMAX parameter on the JANUS DEFINE command for that port.