Close the modal when the overlay is clicked.