[core] fix half cleaned connection objects