Added flow.on('uncaughtException', function(e)