Copied from github.com/hashicorp/consul/sdk/freeport
and tweaked for use by Nomad.
MustTake is the same as Take except it panics on error.
func Return(ports int)
Return returns a block of ports back to the general pool. These ports should have been returned from a call to Take().