If it's just the miner thats crashing (and you're running windows) make a mine.bat file like this
:start
ethminer.exe -whatever -parameters
goto start
Run mine.bat from cmd
Or in Linux make mine.sh file
while true; do
whatevercommandtostartminer
done
then from shell, chmod 755 mine.sh
and then from shell execute ./mine.sh