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.
Or meet up with said colleagues at an industry event, because the world is awkwardly small. So it's in your best interest to make sure that your resignation letter is clear, concise, and polite. Here are some best practices you can follow to make your big exit a professional one.