Use EndTcpIp when you have finished with the TCP/IP services. The procedure shown in Figure 1 releases ports and protocols in use that are not permanently reserved. It causes TCP to clean up the data structures it has associated with your commands.
procedure EndTcpIp;
external;