Close .ghci files after reading them; fixes trac #4487