remove stale modal dialog from the DOM