Release port_allocator to avoid segfaults