attach on restart event