Handle failed trials properly when saving loss for each eval. Adding check to see if convex dataset exists.