Throw an error in case when command returns code other than 0

When some of tasks is failing during deployment, whole command should return exit code greater than zero to mark an error.
Related to #130