This finally allows the test harness to cleanly shut down. Awesome! This commit also reformats the whole project's native code. Oops!
finally. once i'm sure it's 100% working i can probably like, develop this addon finally