Fix issue #25 - Exit proxy loop when poll returns -1
Merge pull request #26 from trevorbernard/master

Fix issue #25 - Exit proxy loop when poll returns -1