add Filelog to guarantee data restore and deal with the try-catches