bugfix: destroy shareDocs - fix #189

It fixed #189 and memory leaks. And of course we should fix share 'race condition' destroy bug.