fix close event workflow. close event goes AFTER closePrompt