modify socked closed