close_port changes