set max value for return code logic error
Catch exception thrown by smimeX509validation when cirtificate is not in the trust store.