How do i close an application started with shell command