[Debug] made the exception handler independant of HttpFoundation