Script runtime errors do not shut a server down. They are simply reported, but the server carries on. As IzNoGod has said, make sure you aren't running in developer mode. That is the only explanation for a server shutting down after a runtime error - that you have developer mode switched on.