Fix double fclose() if clear() is called before the destructor
Merge pull request #165 from gpetruc/fix-fclose-slc5

Yes, it looks like `stdOutIsMine_ = false` was missing.