An `open` statement works forever *for printing*. It should only have an effect until the end of the module in which it appears.