Maybe just do a `close(0)` instead?