Cleanup nsbmagic