As Bob says we would need information on what the popup was as to why it could possibly cause the loss of work.
However, it does suggest you need to be doing regular backups so you don't lose important work. Even for other occurrences when data could be lost, loss of power, crash, etc.