cleanup bouncycastle