Translate .net crypto exceptions into IOException.