The only thing we know is that OnDialogResponse crashes your server. If you're using the version 4.10, then update to 4.11.2 and do what this post says. Re-compile your script and run your server.
If the server gets crashed again, then show us what it prints (I hope it gives some information).
If it prints pretty much the same thing, you'll need to debug your code.