add a test for port interruption based on #190