How to re-prompt when the last message from bot is prompting

everytime the bot opened, it always sent an event that can trigger a journey to collect some profile data. the issue is when the user is closing the bot and the bot is prompting the user, the bot lost the prompt context. Please suggest how to solve this condition.

Thank you