kernel32: Reset stdio handles when they are closed.