You can stop the IBM® CICS® Transaction Gateway service from the Windows Services control panel or from a command prompt using the ctgadmin command.
ctgadmin -a shut [-immediate] [-adminport <port>]