errorDispatcher: stop script execution on exception