vroom has several cases where R calls C++, which calls back into R again. And we may need the original caller env in order to schedule cleanup or mention the right function in an error. We can do a better job of this. jennybc/parentframecpp is a toy package where I really characterized the problem. The solution will look something like jennybc/parentframecpp#1, which might just mean using/inlining cleancall.