using long-lived connections to OpenTSDB, wrapping IO operations with try/catch blocks and reading and logging server errors sent back by OpenTSDB