Revert "Shutdown API."

This reverts commit 141e1ba3c829d1da5b50cb1b033006d7e15c0fb2.