running may not seem like it, but the way you think about what you are doing especially in a race scenario can make or break you quickly... I recently ran a half and did almost all of my morning prep beforehand wrong.. forgot some key things, freaked myself out just before the race and did far worse than I had trained for... if you think you've messed up, you've messed up :)
A trick to get into a race (not based on empirical evidence, just my own experience) is to start counting in your head and turn off everything else. I counted 1-2-3 after I almost tripped in the beginning of a half marathon. Instead of focusing on beating myself up for almost tripping I just continued to count. Broke almost all my PB. Keeps you from thinking about messing up.