kill the thread so we can reopen the port on unix

@adscott fixes #2