Log on caught error