It's not usually considered safe to saw off the branch you're sitting on!
But if you're determined, you can probably just exec the normal command to shutdown apache: "/.../apache/bin/apachectl stop" or whatever it is your installation uses. Oh, and since this has to be done by root, you have to 'su' the command,which means you'll have to supply the root password, so you'll probably only want to do this if you've got SSL going so you can send the password over a secure channel. Etc...