adapt to the new async exceptions API