Added the onBeforeClose and onAfterClose hooks. Calling event.preventDefault()` in onBeforeClose will tell plugin to skip the close operation. #gklst
Updated sample usage of pre and post close event callbacks. #gklst