using with statement for automatic try...finally