Look out for polygon extents.

Also add batch commit to a try/else block.