Updated cap restart task to restart passenger after publishing.