creating connection handling when the network drops and connection becomes stale
Merge pull request #4 from sunnstorm7/master

add some connection handling in case there is a networking issue and the connection is lost