catch esprima exceptions