Fix shutdown with Future sequence