Added return value control in Serial::SerialImpl::close () in unix.cc and win.cc