updating error handling to return reason code, along with status on openTSDB connect failure