undo double error event emitting from  modules/casper.js@76b7f73 and the extra coupling in the onError handler