updated status when error happens