escaped modalwindow.modal with try, catch