Clean up EndsWithException.