add retries to reconnect

Hopefully to help with dropped jobs in resque where the job is dequeued, forks, attempts to reconnect and fails.