[show-hint addon] Fix problem with close event firing too late