fix for clonnection closing