fixes #3138 . Update statistics after operation is run and  before resp...

...onse is send to client
not related to your change, but is `afterResponse()` supposed to be called even when `endpoint.sendResponse(filter(object), getCallId())` throws an exception? If yes, you should wrap this within `try/finally` block?