shutdown if type or node is null