Craft rich text field excerpt with slice and raw breaks when cut inside double tags
Raw doesn't close tags tags for you, it just allows them to be processed rather than printed only. 

The only reason you are seeing closing tags I'm guessing is because your inspector (chrome/safari) is adding them in. Do "view source" to see the real output.

Your problem here is just rogue open tags