Thought of that, but, with the modal, that first click will only close the window, but the click you intended (the link or button that you clicked on) will be lost. It is a bad user experience. It looks like a dialog with auto close, but still acts like a modal