TEST APP : Added closing of the pcap device

Signed-off-by: Denys Haryachyy <denys.haryachyy@ostware-services.com>