Add support for IE8.

- also handle promise errors.