[core]Fix windows exception reporting (close #457)