only catch errors if they are in an extension