Basically, the prisons will spawn a small force of ships every time that they are destroyed. They will explode automatically at a slow rate, but if a few are destroyed in quick succession then you get better rewards on mission completion. (I think) You want to destroy them fairly quickly so you get good stuff but not so quickly that you get overwhelmed.