clean logs and workdir