Family narrowly avoids fire disaster