Add get container stat, fix snap fd leak