perhaps try-finally?