return error when port pool is exhausted
release a container's resources when destroying

[finishes #61232130]