updated client to poll server for completing learning after last iteration