A simple JS function for handling CucumberJS errors effectively and *gracefully* (currently hard with async tasks in WebDriverJS)