Exponential backoff on timeout

Waits 2^(number of current try) upon timeout,  instead of mindlessly
waiting one second.