Investigate calling service level beforeMiddlware prior to failing for invalid context

Logging middleware, token validation middleware, etc that is applied at the service level never get called if an invalid context is called. The method to get the context is called before running the middleware and throwing an error.