added handler for restart event