As he was no longer of any use , his master made up his mind to shoot him ; but when the donkey learnt the fate that was in store for him , he determined not to die , but to run away to the nearest town and there to become a street musician .