Ensure that errors in traversing and afterRoute are both recorded