How to immediately terminate crashed server?

How to disable error log “program has stopped working” when my server crashes so it can auto restart ?

You can use ServerDoc which detects when your server isn’t responding and automatically restarts it. I personally use it and it’s easy to install and works flawlessly.