appmain: Log termination of the event loop