It would have been better if the pirates were caught by the Russians or Chinese.
In the 1800s the British captured and tried many Chinese pirates around Hong Kong area. However, with the British legal system many pirates were set free. One British governor found a solution to this problem. He just turned over those pirates to the Chinese authorities and they had nearly a 100% conviction rate.