If `sync` doesn't exist, how are you calling `end()` on it?