Add Exception Handling middleware