Add ability to stop closing action by return false in a close filter function. #fix 180