Uses rand_text_hex for RGB values, and correcting exception handling