WFLY-2856 Make caching resource manager close the underlying resource manager