Better error handling (builds on #1191)

I mistakenly rebased 1191 and screwed it up, so just created a new PR.

- Addressed comments in #1191
- Now clearing errors on loadstart events.
- Added some default error messages.