add interval before transition shuttingdown -> terminated happens. ref #325.