Windows: clear errors after port open.