Composting plastic makes no sense. When bacteria eat the plastic they produce CO2. Just burn the plastic in power plant and you'll have the same amount of CO2 plus energy.
That said, burning non-compostable plastic (with appropriate emissions control) does seem like an appropriate way of disposing of it, and generating some energy in the process.