As a way to cope with rejection, I often repeated to myself: Focus on the work rather than the results.