adding close functionality to DBPath