To communicate with a thread, use sockets on localhost, this should work. Or use the return code, or the "last error", but that's crappy. For the return code, just `return <number>`; only works with integers.