added try and error handle CalledProcessError