He has the same feelings after the final battle with the Shredder-his anger and self-doubt was caused by Karai, who he believed was an honorable ally, but she was unable to go against her master's orders, eventually causing her to stab Leonardo (albeit unintentionally).