close properly the chunked the connection