fix: release the remain connections while task exiting.