Fix to make sure we do not close stdin, stdout, and stderr