Added fix to a linux side serial closure problem.