Add shutdown endpoint, thin catches ctrl-c