monitor connection with hashmap, so we can add a new connection and remove a dead connection