fix close function
add ehco server for sample
rename sample