Restart stream on disconnect

Added a little try-except clause that attempts to catch socket disconnect errors. These have been happening fairly regularly. There is a new commandline arg for maximum retries and a little sleep timer so that we space out our reconnects...

Kevin