Yes, I was unsure about that line.  I left it alone because there was no corresponding close event, so I figured it wasn't going to be closed via `TrustedUIManager.close()`.  But it would presumably have a different layer id than the one saved now in `trustedUILayerID`, no?