Added a simple wrapper with basic error handling and reconect capability