This is the example I wanted to point you to. Please make sure that other finally blocks that throw exceptions work like this one.