Fix server reconnection and new Reconnector

Fixed the error management during connection issues and added a new Connector.

Changes : 
 - New connector is using a static wait value instant of an Exponential value.
 - Refactor code to force the close() and connect() when the errorHistory is not empty.