Believe me, it was never my plan to get rejected.
If you want to get someone to produce your work, you are at some point going to have to show it to someone you don’t know. Once you do that, the odds are that it isn’t going to be what they are looking for. That is not a nice feeling, and I know a lot of people who say they could never be a writer because they wouldn’t be able to cope with it. But that feeling is temporary: I don’t think about the Virgin New Adventure that didn’t get commissioned or the Vertigo comic series I never got to create. To be honest, the successes are just as temporary: most writers I know are usually thinking about the next thing, not the last. The half-formed idea is always much more exciting than words on a page.
I get rejections because I try to get work. I can’t stop the one, because I can’t stop the other. That is, quite simply, all there is to it.