v2.0.7: Updates return value for handler invocation
Changes the `invokeHandler` method to return the value of the handler. This allows for greater flexibility in how the handler is used and enables the caller to access the result of the handler execution.