app/testpmd: fix quit to stop all ports before close