correctly quits now, also can now reuse the same port sucessively after quits