Fix abort on `write_cb`