Only call init_client and free_client once, fixes multiple transactions