feature: implemented the ngx.exit() function with FFI.