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

...onse is send to client
So, how do I achieve that statistics are updated before response. I feel like it is a naming issue. I changed the name of afterResponse to afterProcess on purpose. Is it ok if I leave the afterResponse method also, so that future implementers choose one or other depending on the need?