Work out the power down details