Yes so it could perhaps shut off the miner and launch itself again with the new nfactor
cudaminer terminating is enough- get your batch/bash script to restart it:
#!/usr/bin/env bash
while true; do
./cudaminer --algo=whatever --url=whatever --userpass=username:password -l Y7x32 -C 1 -i 0 -m 0 -H 1
echo "Restarting in 3..."; sleep 3
done