I think I nailed the problem. In the "Edit Task" window, I had the database I was trying to restore to selected from the "Database" drop-down. I changed that to the master database and the scheduled task ran successfully.

I will keep your KILLPROCESS SP running just as an extra precaution for now. Thanks again for your help.