A bug or exploit in a program may allow a hacker to write code to the computer (remote code execution), and depending on the attack type and other possible factors, this can overwrite data in memory. If this happens, the program possibly could be corrupted and not be able to reopen once closed. Depending on the importance of the file, the program will likely "freeze" or crash if this happens.