Fixes #3910 adds method for closing the lightbox - from pull request #337