fix: update of connection when destroyed