correct exit and exception in native thread
correct exit and exception in native thread