Support 'break;' - retry write and log in case of failure