A day of chaos brings Twitter close to the brink