added process termination to test system