Element Vanish with Java

I have no issues running my ERP Java (Awt) session, setup parameters for print a report and click on Run. Afterwards a pop up window with “stop” button apperas to give you the possiblity to stop the printing process “Arresta”. Tried to cacth up that window and / or the “Arresta” button (you see in the attachement) with WaitUiElementVanish to show a Message Box when the pop up disappear itself but does not work. Tried different settings, but it comes up only when I close ERP application (so Java frames).
Can you help me here ?

ElementVanishProperties .