added error handling functionality and disconnect to socket_cli and nodejs/modules/http_requester