Updated `GlobalExceptionHandlerMiddleware.cs` to include necessary using directives for logging and options handling. Removed the `HandleExceptionAsync` method and replaced it with a more extensible approach using a dictionary of handlers for different exception types. Added logging for unhandled exceptions to ensure proper error tracking.