Closing an existing socket connection in OS X

view story

http://serverfault.com – I am trying to the robustness of my application and would like to close a connected socket in OS X without killing the application or the network connection(I want other sockets to stay open). Can I do this with ipfw? If so how? (HowTos)