Catch all exceptions, not just EcmaError.

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