Make sure last chunk gets saved.