Issue #40 Implementation for reconnection logic. Use ReconnectionTest
class to test it out.