When facing a difficult debugging problem, particularly one involving asynchronous code, it’s useful to reduce the code down to the smallest test case that reproduces the problem. We speculate a bit about the root cause of our EPERM issue, then start removing and inlining code to create a simple, unified test case.