add reconnection logic
Merge pull request #109 from leapmotion/readd-reconnection

add reconnection logic