wait for all messages acked before termination of a stream