add an exc_info_to_failure convenience function (which should really be in Twisted itself)