CLOUDIFY-1655 fixed onError and debug command