Made option to fsync log file during close operation.