The wait command is a potentially long running operation that must be cancellable from the API perspective.The API should be callback-driven like with log container or events command. This way someone could call the close() method of the callback to close and abort the connection / command.