preventDestory and doc cleanup