Emit rawCmd's on error and success

This is useful for debug and display purposes