I currently use this script to restart my script.
catch(err){ console.log(err) webhook.send(`Error monitoring **www.-.com**, restarting monitor.`)