CLOUDIFY-1655 fixed lifecycle hook not launched correctly by debug hook in onError mode
Merge pull request #36 from Fewbytes/CLOUDIFY-1655

CLOUDIFY-1655 fixed lifecycle hook not launched correctly by debug hook in onError mode