Wrap caught "Error" in an `Error`.

Use `toString` check rather than `instanceof` check.