If you are instructed to contact GND, then do it as soon as you are reasonably sure that you will vacate the runway. If the TWR ATCo would like to keep you on his frequency, then he won't transfer you to GND.
If anything extraordinary happens and you are unable to vacate runway, call the TWR guy on TWR frequency.