The "Close Port" function is used to close a port that has been previously opened from the "Open Port" function.
To call this function do the following: