Long before the ending, or at the time where Near asked to meet with Light face to face, he could have simply announced himself to the world, and told his followers to go to the warehouse with him and kill them all, or simply capture them.
Or .. he could have simply announced himself to the world, and just ignored the 8 people in the world trying to capture him. What would they have done if he did that? They could do nothing.
stupid ass ending.