update status when failed