Fix the stale port creation issue when the allocation pool is exhausted

Change-Id: Ibc6d7a8570d344087d4ed9d5197ef5131bd96b73
Closes bug: #1365489
Merge "Fix the stale port creation issue when the allocation pool is exhausted"