Serialize errors to make sure that the callback is still invoked when an error is thrown. Firefox: "DataCloneError: The object could not be cloned." Chrome: "DataCloneError: Failed to execute 'postMessage' on 'WorkerGlobalScope': An object could not be cloned."