Remove applied style class when closing a Prompt