title: How to close/stop a .NET application and re-execute it?
body: <p>My application updates(running a vba script) an excel shared workbook, and since it is shared, there shouldn't be problems when someone else is using the same file at the same time. But for some reason, sometimes it simply freezes, without any error message, just freezes.</p>
  
  <p>Is there a way to programatically make the application  stops/closes automatically when frozen or after some minutes(In normal conditions, this updating process shouldn't take more than 1 minute)?
  And, if possible, re-launch the app again automatically after some minutes for at least 5 attempts?
  This way would ensure process completes succesfully.</p>