adding on shutdown actions and aborting when no edge is found