Updated kill script to search for cubex and filter by class name