catch errors caused by sending user to opener