stopping master disconnects from port; improved test cases