or simply a function "onFinishedMessageHandling" (or something likewise)