Try not closing things before dup'ing on to them