The convention is not to close in the examples, that way when someone runs the example he/she sees something on the screen.