I think this needs a bit more digging before merging something like this which leaves a bunch of open files dangling.  It's essentially introducing a bug intentionally because we don't understand another one.