Removed unused exception warnings.