try
    open "myfile.txt" for input as #1
    print "doing stuff"
catch
    print "oops"
    return
finally
    close #1
end try
