Merge changes Ic448872c,Id4ef1891

* changes:
  blast: protect destruction of callback thread
  blast: check for buffer before dumping format