try-catch EcmaErrors before we evaluate main, in case of faulty syntax.

Signed-off-by: Robert Xu <robxu9@gmail.com>