CamSDK: CamForm.escalate and .error: how to close task after submission of sync event?

x-ref for similar issue: Dismissing task form for inexistent task