Add "write_failure_alert_box()" to put up an alert box for a failed