remove connection when it's broken