You need the PID of the launched app and then send the SIGTERM, SIGQUIT, or (at worst) SIGKILL.
What re you trying to achieve? If you launch a Desktop app from a terminal, the terminal will appear to be hung until you exit the app or send a CTRL-C or CTRL-\ via your keyboard. This is true for any executable launched from the terminal.
For example:
ping 1.1.1.1
will continue into the future until you type CTRL-C.