return if stream already closed