Stop serving when shutting down workers/master.