add vm error handler support.