Make sure that STATE_COMPLETED gets cleared in blocks after failing hash check.