I think I cured my own problem. While I was testing I have Visual Studio set up to start AutoCAD as the start action to debug. After I'd try my code out, I would simply just close Autocad to kill the application and return to Visual Studio. Apparently windows didn't like this. When I started to actually close my application and then close Autocad, the problem went away.