Remove unused exception variables