complete hack but it works - using nc instead of socket
Merge branch 'master' of https://github.com/Alfresco/ThunderOps
added try catch to hack