Sense if USB is alive or dead ++
A simple method would be to add some relays which have both Normally Closed and Normally Opened connections. Wire the solenoids that you want to fail open/off to the normally opened terminals, and the solenoids that you want to fail closed/on to the Normally Closed terminals. This will require some logic changes in your software where the Normally Closed solenoids will have inverse logic control (When the output is ON, the Relay is on, so the solenoid is off).