Fix security manager issues.
- Properly uninstall a security manager