Close dup'ed fd after using