Just being ultra safe - many usage patterns for IO involve closing a possibly null stream.