Clarify conditions under which modal:close is triggered