allow to close file handle when it's destroyed after unplugged.
Merge pull request #29 from stonier/win-porting

Allow serial to close file handle when it's destroyed after unplugged.