In case of running 3 bot parallery when one bot fails in middle how to restart that bot automatically

In my project I want to process 2000 records so i am running 3 bots simultaneously on 3 bot station.But due to login failed one bot terminated and rest two are running.so now how that bot will start automatically.