Did you try a full publish on the project? Does it crash in a different way or somewhere else? Maybe this gives a new idea where to further investigate.
Even if it does not crash - does the log of a published run show a proper engine shutdown or does it just stop logging (meaning it is not shutting down in a proper way)?