finish

Finishes the workflow in case isComplete is true, otherwise an IllegalArgumentException will be thrown

Throws

the SDK can not be finished

the controller can not be used anymore