Better connection closing.