make local requests last to ensure, if performed inline, we do not delay remote requests
remove sorting
fix assert
ensure worker/pool state is safely restored in event of unexpected exception killing worker