Three years ago I learned through the grapevine that I was going to be laid off. It was supposed to be kept secret from me but drinking buddies in HR and Accounting tipped me off.
So how did I react? I spent the week documenting all of my responsibilities, so when they were dropped into my colleagues (and fellow professionals) laps it would not be too much of burden on them. Then on the day I was to be laid off I showed up early so I could "have the conversation" and make a discreet exit.
We need to be better gatekeepers of our profession. The idea that IT professionals are sociopaths that will destroy infrastructure unless they're coddled really damages all of us. It's on us to prove we're valuable colleagues and professionals, and not dangerous rogue agents who need to be marginalized (and then easily commoditized).