You should end the elf on the shelf letter to the kids with a positive note.
Appreciate them for being nice all through the days he was watching them.
If you are planning to give your child a Christmas eve gift box, maybe the elf can leave the letter inside the box so that they are ready for their departure in the evening when Santa arrives.