remove closed connections from map