change  close event from request to resposne socket