The Hand_off. Finally, state your willingness to help out with the transition. You don't need to go into great detail (and definitely don't promise anything you can't deliver), but a couple of lines stating that you'll ensure a smooth wrap_up of your duties will show that you're in the game until the very end. Obviously, feel free to adjust this a bit based on your experience and your company culture, then submit it via the typical procedures at your company.
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.