How does one kill the process created by com_load_typelib()?

PHP Code:
com_load_typelib('Word.Application'); 
The above code creates an instance of winword.exe on the server, and leaves it running indefinately. How does one kill this process when the code is done executing?