only other idea I can think of is that if your port you are listening on closes, you exit, and so here you would close the port to trigger that single exit path. But I don't know if we actually handle that port closing (since it shouldn't close unless we close it ourselves), so this is fine.