I understand, if you debug the server from Visual Studio, it should hit the same error but instead of closing, Visual Studio will stop at the line that crashed the program (or server in your case). You can use this point to check to see what file is giving the problem.