Fixed Stream closing for terminals