Try and retry connecting with server
Use hexadecimal for slot in terms
Pass sleep function (for gevent)