Depending on the timing of worker shutdown (for example, if it happens while there are outstanding activity or orchestrator executions), there can be confusing error messages written to the logs. This PR cleans up the error handling and logging for some of the commonly encountered shutdown paths.
Depending on the timing of worker shutdown (for example, if it happens while there are outstanding activity or orchestrator executions), there can be confusing error messages written to the logs. This PR cleans up the error handling and logging for some of the commonly encountered shutdown paths.