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 a Resignation Letter? In these digital times, why should we submit a resignation letter, anyway? A paper trail does seem old_fashioned, but in this case, it's a best practice. It makes your intentions clear, as well as the conditions. You're removing any ambiguity about the end of your time there.