writer: correctly close writer. add log
logs and fixes
carry: add cmd