Cleanup of native functions.