add smartinspect and devart reference
add error handle and log error for while program