Running away from battles is something I'm working on. You will need special items like smoke bombs to be able to run away and some battles will not let you run away anyway.