The initialization and stopping of events is what facilitates paymentsystem on the back end, which is bslaunched on the device, being able to shut down when no work is present. By requesting and stopping paymentservice events for each call, paymentsystem can go away if there is a long wait between calls from the calling webworks app. To answer the other part, the events get stopped after the call(s) are completed, in waitForEvents.