Added reconnection on error & close for epiclient