allocate port --> close port?