Script stops for no reason?

That sounds correct, this is what I get in my event log:

tell application "Finder"
display dialog "Which batch do you want to check?" default answer ""
choose folder with prompt "Choose the corresponding folder of images..."
list folder alias "user:Downloads:"
end tell

You do know that the rest of the script (the Filemaker part) is commented out, right?