Exception Handling Middleware for Django