Fix issue #5
Merge pull request #6 from alexguan/issue-5-reconnect-when-unexpected-data-received

Fix issue #5