fix comparison between pointers
do not remove a connection from the connection table on deletion

A hash table must not be deleted during iteration.