Although in this case... when would you `releaseRef()`?  I only see the listener getting removed when the Document's file is deleted, which won't typically happen.  It seems like the listener (and ref) should also be removed when the Document is closed or when Live Development is turned off.