added close method for log widget to close handle, add basic test for log widget