Or if you'd put the two lines in the try block, should work also...