Yeah, but you shouldn't release people before they're re-socialized either. Gaza needs an occupying force for the same reason my home country needed one in 1945: Way too many fascist in the population.
Some some survey data:
-
And of course there's the fact that 2013 at least 59% of Palestinians were in favor of executing apostates (i.e. murdering people who cease to be Muslim).
That said, of course there needs to be a positive economic development. Just like there was in Germany under occupation.