Removed exit on failed encode