Doesn't need to be this PR but you'll probably want to have some mechanism to drain any remaining activations from poll_task until it returns CoreError::ShuttingDown. Remaining activations may exist due to replaying a workflow to catch up to the end of history which was already fetched from the server
Originally posted by @Sushisource in #18 (comment)