Fix parallel training so trained models are returned and saved