Do not log non-running containers

When we have too much container, even stopped, we reach the FD limit.

Now, we log only when a container starts. So when we close the log, we really want to close it.