If you have used (lock) appended to the layer name, this prevents the layer from closing unless you link popup:close to an object on that layer, clicking will then close that layer.
This appears to...