The `tryToClose` methods have to be far more robust in order to call them sequentially like this; they can't let _any_ exception through. The alternative (and better approach) is to call the first in a try block and the second in a finally block. As it stands now, this is a potential connection leak point.