Added periodic checks for receiver for errors.

If something bad happens in the receiver thread we will now log
the badness and attempt to rebuild the receiver.