Thermodynamics of rare events and impulsive relaxation events in the magnetospheric substorm dynamics