clear the port to avoid rebind