closing listen port on leave