Otherwise kill_instance + restart_instance in short succession will still find the port busy and will fail.