Gradually slow down reconnects to once every 5 seconds.

Fixes #4.