add support for logging exceptions to squash