Fixes a access violation when thread initialization fails. Also notifies the user.

Write exceptions from thread initialization to the debug memo.
Check if Initialization failed before using the Thread.