added exit when no machines are found