fix for key deletes in generateRSAKeyPair
fix error handled instances of key deletes
Merge pull request #3607 from birarda/master

fix for key deletes in generateRSAKeyPair