more debug util. can now catch xsb errors, which WILL FREEZE INTERP.