Fixed connection closing.