Close connections when they die