catching git cloning errors and call download