fix Connection close method