Added a global function that will take a PID as an argument and close the associated process.  Process is first closed by sending a windows close message, if unsuccessful, it is sent a kill signal.  returns true if the process was closed with window message, false if killed with kill signal.  This cannot be called from the main function when run as a standalone app