fixed double connection release issue.