Server crashing after about 2 to 3 hours after first start

The server keeps crashing 2 to 3 hours after the server has started. Is there any batch file that I can run that will detect this and will make it auto restart?

@brysi73 There was an exe that was around that would restart your server every 5 minutes when there was no players in it, but I don’t see it in the forums anymore

Well if we can find something that would be great.