Save your documents on regular basis, for example, every 5 or 10 minutes. This habit will save you from all the troubles with document recovery.