override postRestart method.