c# not calling the restart. Why is that?