added appropriate ending to files generated by bufferedchunkingwriter