When the aircraft is connected to a ground refueling source, the fuel management system commands the refuel shutoff valve to close when the selected fuel quantity is reached in conjunction with the refuel control solenoid or pilot-operated float valve.