Trigger an event on close

I've added this to my local copy because I need to clean up a form inside my leanModal and I thought it was a good idea to share the idea.