add exceptions.c, threading.c but valgrind failed

6bytes was lost in Exception.c
and I didn't find the right way to fix it.