Is this necessary because we're not doing `STDIN.reopen(rd)`?  Wondering if you ran into issues / memory leaks otherwise...