add thread which receives the event generated when the communication port is disconnected.
Merge pull request #28 from stonier/win-porting

add connection checking thread for windows serial driver