Improved exception handling. Don't swallow exception

Would be nice to see the exception thrown by the RSAProvider in de logs, for instance if you use the wrong public key format (too short).