fixed failure on port write/close