Allow false to be passed as abort_on_close option

Before as it was only looking to see if the abort var was defined or not you were unable to set the abort_on_close option to false and have the post callbacks trigger.
Merge pull request #5107 from danmillar/patch-1

Allow false to be passed as abort_on_close option