It is best if the closing goes into a finally clause than an else clause.