Lay groundwork for graceful shutdown mechanism.