Add error handling to stack script

No match.