Don't crash on network problems.
Remove trailing whitespace.
Update my_colour when it changes.