Remember about try...finally, or use 'with' operator!