Creating the Master key... Secure Store Service did not perform the operation.

I've recently started using de AutoSPinstaller and let me begin by saying im absolutely amazed by the work that is done on this gem. A very complete tool for setting up a proffessional and automatically well documentated farm. Thanks for saving me from a lot
of work! =D I use it in combination with the AutoSPinstallerGUI and on my first run I only run in a few mere problems which i could fix myself for the biggest part.

I've run the script on my test server a couple of times after fixing small issues. But I can't seem to get passed the following error. Which standing between me and a totally succesful finished script:

I'm working with two servers; 1 WFE and 1 SQL. This setup is for test purpose and fine-tuning of the script only. Afterworths i want to translate the script for a multi-tier farm of 5 servers (2 WFE, 2 APP, 1 SQL)

Is there anybody that also ran into this and any thoughts on how to fix this?

No im running everything on one SharePoint server. So the SS service is running on the same machine. My first thought was that the service was not running or fully started after the first run of the script, so I gave the server a reboot after the first
time the script finished. After that I started the script again and this is the only error I have when I run the script for the second time (and thirth and fourth =D )

Thanks guys, I'll verify as well and if necessary add the dependency (i.e. force C2WTS to start if Secure Store is being provisioned) similar to how I already have dependencies included for Excel Services, Visio Services, PerformancePoint - they all require
C2WTS.

I just successfully provisioned the Secure Store service on a brand new single-server farm
without provisioning the Claims to Windows Token Service. Therefore, we can't truly say there is a direct dependency on C2WTS for Secure Store...