This will stop all applications which were created by startServer or startPipeServer.

stopAllServers()

See also

stopServer to stop a specific server.