Reorder privileges drop code and fix pcap stats