JBTM-1979. REST-AT integration API recovery tests fix on IPv6
JBTM-1984 Updated to only close the recoveryConnection when theModifier is not null