Core: Removed unused exception variables that cause warnings.