Handle SSL errors (such as timeouts!) and do exponential back off on errors 

Improved error handling, trap SSLError and pass exceptions to a handler for logging and exponential backoff on errors (required by twitter!)