An unloading system for an agricultural harvester includes a grain tank (16) a door (56) at the outlet of the grain tank (16) that is disposed to control the flow of grain out of the grain tank (16) a door actuator (84) coupled to the door (56) that is disposed to open and close the door a first conveyor (30) disposed to receive grain passing through the door (56) a first conveyor drive motor (80) coupled to the first conveyor (30) to drive the first conveyor (30) and a control circuit (72) coupled to both the door actuator (84) and the first conveyor drive motor (80). The control circuit (72) being configured to close the door (56) prior to shutting off the first conveyor (30) in response to a command to shut down the unloading system.