Destroy shareDocs

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