Troubleshooting
The thread exit message is a bug in Visual Studio 2013.
https://connect.microsoft.com/VisualStudio/feedback/details/812144/vs2013-reports-incorrect-thread-exit-code
Check to see if you have CTP 5 installed for up to date fixes.
https://www.visualstudio.com/news/vs2013-update5