ability to close the lightbox if there's errors