Add mid term metric fetching. Storing metrics for training crashes.