Added in type checking of the results returned by the tornado thrift library in case they are exceptions.