Assault Defense will fail after the wave if the Alliance Fortress is destroyed during Alliance: Assault Defense.
If your Alliance Fortress is destroyed on Wave 10 and cleared wave defense, it is considered cleared.