Added handling for re-establishing a connection after a ResponseError