RT #83905: add more tests for whether port closes in stop()