It'd be great to allow a message length greater than 512 characters. However, at a minimum, right now a message length greater than 512 characters both throws up a debug error AND causes the script to stop running. Is this really world breaking behavior that must be stopped? Maybe instead throw up the error, truncate the message, and allow the script to continue operating?