try to catch error at office