Libnc: Cleanup