I want to run a function when a modal is closed. I can place a class on close buttons, but what about simply clicking outside the modal?