ReStarting crashed FileMaker Pro

Hi All, Have written and been using a script for some time that tries to detect when FMP stops responding and then re-starts it by telling the Finder to open a starter file. But some times it seems to time out or some thing with the following error: Connection is invalid. Even though I have included try, on error and timeout statements. If I quit FMP to test this script it re-launches fine, but if it just randomly crashes this script fails to open the starter file. Here is the script:

on idle {}
	if appIsRunning("FileMaker Pro") is false then
		with timeout of 60 seconds
			try
				RAICAlias -- see if we've created the alias yet
			on error
				-- if not, create it in the error branch
				set RAICAlias to alias "Web Server:Users:robertfleming:Desktop:RAICQuadG5 Starter.fp5"
			end try
		end timeout
		
		tell application "Finder"
			with timeout of 60 seconds
				tell application "Finder" to open RAICAlias
			end timeout
		end tell
	else
		--FMP Is runnnig, but will need to check to see if Graphite is open
		tell application "FileMaker Pro"
			activate
			if database "Graphite.gbm" exists then
				-- all is ok
			else
				set RAICAlias to alias "Macintosh HD:Users:admin:Desktop:RAICQuadG5 Starter.fp5"
				with timeout of 60 seconds
					tell application "Finder" to open RAICAlias
				end timeout
			end if
		end tell
	end if
	return 5
end idle

on appIsRunning(appName)
	tell application "System Events" to (name of processes) contains appName
end appIsRunning

Any suggestions or help would be great. Thanks.