update common the close -x in add_port