Updated unicorn script to fail out properly.