Popup: Added detachOnClose configuration