Explicitly close stdin, before reopening it.