A general comment: You don't check whether the deletes/gets/post to the av_store/chronos succeed. I think at least this needs commenting and debug logs adding. Can you also check it there are any cases where a failure will cause an issue?