Raise an RuntimeError if asyncio is not available.

Fixes #830.