Removing deletes it might be causing the crash.
Missing an & in the exception parameter
Added more output
Added additional debug information
Brute force to keeping thread alive if it dies.
Took out any NULLifying from code to make sure this isn't the bug.
Adding more logs
Removing debug statement causes a flood in log
Adding rpg_tutorial into ClientExamples
Added a conditional expression to bytes to make sure we have more than 0.