Test case for #2829
Fix #2829
Updated CHANGELOG
Merge pull request #2835 from sjinks/issue-2829

Fix memory corruption on unclean shutdown