Make queryStratum threads safe
Handle Stratum errors properly by passing exception through TChan