It turns out the most common error is that .send() throws (which is kinda weird, but oh well). I've amended the patch to account for that.