Remove usage of deprecated function setFallbackLocale
Use new debug component
Remove unused imports and fix docblock for exceptions