Remove unnecessary flush()

close() implies flush()