add logging, catch exception when writing to opentsdb.