How do we close an open program from the package name?

How do we close an open program from the package name?