When running on a slave process BouncyCastle may not be registered so give a try at registering first