Fix heap corruption while destroying not inited connection