--removekeywords flag doesn't remove data from the logs if the keyword fails

Perhaps this library could be of use:
Snooz82/robotframework-crypto: Robot Framework Library to securely handle credentials. (github.com)

Instead of cleaning afterwards, prevent the sensitive data from being logged plain-text.