allow external errors to be caught and returned normally