Fix a bug (vm is crashed if window is not opened)
abort_vm, add ERROR_MALLOC
Merge branch 'abort_on_error'