Raise a RuntimeError if asyncio is not available.

Fixes #830.
fix tests
Merge pull request #854 from benoitc/fix/830-2

fix asyncio worker handling