technically, anally, you probably need to wrap the first close in a try block and put the second one in a finally block.