KeyList: Fix bug with double free memory in the destructor
Remove the unused PortCounter class