I've been there with another Pet. It's very hard, but you are doing the proper thing. Your little friend is going to feel loved and cared until his last breath, and that is all we can every mortal could ask for. After a while sorrow will fade out and good memories will prevail.
Sorry for your situation and I hope you will get to spend some quality time more.