catch exception (see #363)