When deleting connections hashtable, delete stored connections as well.

Connections stored in hash table did not get deleted when hash table has been deleted itself.