Search for the connection before removing it.