Fix crash on exit
Merge branch 'develop' of github.com:BitShares/bitshares_toolkit into develop