CLOUDSTACK-7669: Return non-zero exit code during single command run on shell

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>