Lifecycle to passed end time when schedule expires.

Switch to passed end time when the connection's scheduled end time is in
the past.

Correct handling of provider notifications in the idempotent message
handling.