Container State Question

I think my containers are maintaining some sort of state that I am not fully understanding. The result is that whenever I restart my system with docker-compose up, I see a SocketException calling accept() on a newly created server socket. This is in the SocketHubAppender that is part of Log4j and after examining the code, I can see no reason why that socket should be in a closed state. Also, this only occurs when restarting a previously created container. If I remove the one container and start everything up, I don’t see the exception. Also, if I use docker-compose down, thus removing the containers, I don’t see the exception when I restart. The exception only manifests itself when starting a previously created container.

What am I missing???