Just watch the display: if the animation appears during the restart, then the method you are using is sufficient. Otherwise, not.

Cheers