Reorder restart process to minimize downtime for unicorn.