cleanup
do not close over rumpfn
move getfd to helpers