Free done orders on client.
Improve reconnection logic.
Added support for sid.