for those with slightly unreliable cointerras, I've written a very small script based on the cgminer reference python that monitors and restarts cgminer, it's really simple so not sure why I'm bothering to share but let me know if it's useful
http://pastebin.com/ZgyV0D3qyou need to install sshpass (apt-get install sshpass)
to use, just run cointerra.py and it will check the status and restart cgminer - I put it in a loop with a 2 min sleep or something.
Will