bthread.js: handle pool errors.

Now that bcoin errors are propagated to the pool, it's probably good to handle this to avoid thrown errors. Don't want the next release to break bthread. :)