add port closing