Updates $ pilot shutdown to use ls -r and only try to shutdown running programs