Is it possible for there to be more than one `CSSDocument` open at a time? If so, then this would remove all handlers for all CSSDocuments when one of them closes (either what's currently in the code or if you change it to just removing the namespace).