Handle solver failures in shortcut code

Resistance shortcut code now configured to recognize solver failures.
Fixes #62