Move autoClose
for Resource
to common
#3483
Merged
autoClose
for Resource
to common
#3483