[show-hint addon] Make sure onClose is actually called

Issue #1425