If the specific criminal should be involved in the punishment process then this was a happy accident, but if not then any criminal would do, and since everyone was undoubtedly guilty of something, the net result was that, in general terms, justice was done. (MA)