fixing dependency injection for messaging exception handler