Make sure the close button is visible before closing the overlay.
Merge branch '2.4.x' of git://github.com/plone/archetypes.referencebrowserwidget into 2.4.x