[JBJCA-1149] Recovery connection not closed correctly