Implemented DOM detach monitoring & cleanup for custom panels