Abstracted return and shutdown