app/testpmd: handle SIGINT and SIGTERM