For example, you should be able to do: "shut down client when all data has been transmitted and acked"