Multithread was not properly detached

..causing crash in some cases returning 'native thread exited without detaching' error message.
Merge pull request #87 from Hasufel/patch-1

Multithread was not properly detached