Let's call it the "SDK" instead of "library"
Update to Kiwi 2.2, use its better string matchers
Don't write the epilog to a frozen buffer

If a previously frozen buffer was not successfully posted to the server, it would be frozen a second time when the next flush occurred. This would write the JSON epilog to the file again, resulting in a parse error on the server.