raise exception if kannel returns an error