exception handling in Kraken