Slightly more intelligent monkeypatching for Connection.send