Added try except into command execution for shotgun

Change-Id: Icdaf2eb884e4f0ff08ab1e2d035afb3ff4e1acb1
Merge "Added try except into command execution for shotgun"