[Property] onBeforeClose [Description] 
You can set a callback function here. It's called just before closing the overlay. It will get the overlay object as a parameter. Please refer to the methods section how to use this. If you return false the overlay won't close.