Because you told me to put it there :wink: 
The reason is, the function will be called from `end_session`, as soon everything is ready.