always flush the output
improve automatic closing of streams - needed for transparent batch
processing