log: refactor code, rename backend objects

Change-Id: I2685a3578f7fe8d2248fd82393df93ab3b9049a7
log: add Backend.close()

Change-Id: I620400ade62862b9429e0764a3b2cf12ce0789f5