[PATCH] kunit: tool: misc fixes (unused vars, imports, leaked files)