Updated Crypto exceptions to be serializable