connection close & shutdown