asyncWriteにfailure blocksを追加