Dismiss modal dialogs before launching a URL, closes #112