Implemented the abort plugin interface further.
Added isBeingTerminated function to plugins api
Refactoring -
consistent usage of start_try catch macros