On database close application crashes!

Thanks. Agree. I have one more open question regarding tombstones deletion and purging. Functionality does not work as documented. I can delete documents vianq1 but cannot purge already deleted document. My auto compaction setting should remove automatically every 3 days. But this does not work. Manual purge does not work also. I am receiving an error. More info: How to remove all sync information from bucet. Purge does not work ! Sync issues!