Collect shutdown duration.