handle.close() in try/finally