morehouse added a comment. One option may be to add a flag to disable the exit hook and use that when doing coverage builds. Actually I thought I included a flag in this revision, but apparently not. https://reviews.llvm.org/D35602