Bug Fix: try to reconnect when a connection gets lost.
Merge pull request #3 from chendx79/pull-request

Bug Fix: try to reconnect when a connection gets lost.