Fixed up the error handling on the barrage_app file.