Bug 897852 - Don't flush if we were destroyed.  r=roc