With this method your server will always restart and there will be no "Has stopped working" issues. I've been on the lookout for this for a couple of weeks and now that i found out myself i thought, why not share it.
Get a restarter, google or make your own in a .bat file. I am using this one: Click here
1. Open regedit.exe (you can type it in the Start Menu or run it through Task Manager)
2. Expand HKEY_LOCAL_MACHINE
3. In it, expand SOFTWARE
4. In it, expand Microsoft
5. In it, expand Windows
6. In it, Click on Windows Error Reporting (you should have reached HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting)
7. Right-click on Windows Error Reporting, go to New and select DWORD (32-bit) Value
8. Give it the name DontShowUI (exactly as written here)
9. Open it (double-click) and in the field “Value data” type in the number 1
You’re now done in the regedit. No more “Has stopped working” dialogs will appear. And i quote Foereaper: "As a side note, this will prevent EVERY error box from showing for any other program as well, as well for debug builds. Use at your own risk", if you decide to turn them back on, just change the value of DontShowUI to the number 0, or just delete DontShowUI
Now open up your mangosd.conf file in your server folder and look up MaxCoreStuckTime, the current value is 0. Change it to anything above...10 i would say.
Restart your server so the changes takes place and then you're done.
Also i am using Windows Server 2008, it should work on Windows 7 or higher too. I am not sure.