Add retry option in case of socket timeout

Raise exception in class instead of exit
Add a while loop to keep trying 5 times before
we exit
Remove errno,msg and use just e

Socket error exception needs to be studied better
right just pring e
Just print socket exception instance

Right now unless i get more handle on
socket exception just print e
Minor fixes to RunTask.py
Minor fixes to RunTask.py
Merge pull request #81 from mrniranjan/master

Various fixes to RunTask.py and restrint.py socket exception errors