Prepare for It. Your best option in this scenario is to accept it with dignity and make sure you're ready to leave the office for good when you turn in your resignation letter, whether that means gathering up your personal items or making sure you've collected the names and contact information for the teammates and clients you'd like to stay in touch with.
Why might you still want to write a resignation letter? Many experts believe that writing a formal or even a basic resignation letter when you're leaving your current job helps make you seem more courteous and professional. However, the real reason to write a resignation letter is to create a paper trail documenting that you have given notice (if your employer requires two weeks notice or some other amount of notice) on a certain date, and to formally kick of the process should there be any legal hiccups (quite rare) with incorrectly processing your final paycheck and last day of benefits.