added shutdown endpoint