need to delete from plan_instance table when template is deleted
extra parameter has been changed from boolean to long
skip handled instances while executing plans