WIP persitent connection resource handling [skip ci]