closing of serial interface should be conditional on __APPLE__
Merge pull request #207 from birarda/master

add conditional closing of serial interface