Well you will have to define then what a web server is....
because all "web server"s are just programs that sit on a tcp port and respond to client requests usually with the http protocol but not nesessarily (sp?).
the only way i can think of to really ensure they are ALL stopped is to stop the tcp protocol, do your process, and then restart the tcp protocol.
have fun
stan