hanging sockets!??!

hi all,

i had a program which created a socket on port 7113, but for some reason the program was hunbg and I had to Ctrl+c it. I ran the program for a couple of times and now when I do a netstat -a I see that these sockets are lingering and that might be the reason why my program is not functioning properly(I am doing a select on sockets connected to 7113 and 7114).

localhost.7113 Idle
localhost.7113 Idle
localhost.7113 Idle

localhost.7114 Idle
localhost.7114 Idle
localhost.7114 Idle

Is there a way of removing these socks??

dont worry abt it.

I found oiut that, the only way that they can be hanging around as IDLe is because the program will actually be running in the background!!!!!

I had done ctrl+z for a few of the programs and not ctrl+c and had totally forgotten. killed all the programs and all the hanging sockets are gone!!

thanks anyway