Prevent multiple listeners from spawning multiple dialogs.