add an option for length limit of track.logs
close xmlrpc properly