Re-ordered shutdown, added z_rgb_colour datatype.