A dishwasher (1; 100) comprising a dishwashing compartment having a loading opening; a door configured to close the loading opening; a water supply tube having at least one docking hole; a pump for pumping water to the water supply tube, the pump being driven by a pump motor; a rack (13; 14) configured for movement out of and into the dishwasher (1; 100), and a rack detection system, the rack detection system comprising: a docking system comprising at least one plug disposed on the rack (13; 14) and configured to dock with the at least one docking hole of the water supply tube on condition that the rack (13; 14) is in an operational position within the dishwasher (1; 100); characterized by a controller configured to sense a load on the pump motor of the pump for pumping water to the water supply tube and determine if the load on the pump motor is within predetermined operating limits, wherein, on condition that the rack (13; 14) is removed from the operational position within the dishwasher (1; 100) and the at least one plug is not docked with the water supply tube such that water flows out of the at least one docking hole, the controller is configured to sense that the load on the pump motor is outside of the predetermined operating limits and shuts down the dishwasher (1; 100). a dishwashing compartment having a loading opening; a door configured to close the loading opening; a water supply tube having at least one docking hole; a pump for pumping water to the water supply tube, the pump being driven by a pump motor; a rack (13; 14) configured for movement out of and into the dishwasher (1; 100), and a rack detection system, the rack detection system comprising: a docking system comprising at least one plug disposed on the rack (13; 14) and configured to dock with the at least one docking hole of the water supply tube on condition that the rack (13; 14) is in an operational position within the dishwasher (1; 100); characterized by a controller configured to sense a load on the pump motor of the pump for pumping water to the water supply tube and determine if the load on the pump motor is within predetermined operating limits, wherein, on condition that the rack (13; 14) is removed from the operational position within the dishwasher (1; 100) and the at least one plug is not docked with the water supply tube such that water flows out of the at least one docking hole, the controller is configured to sense that the load on the pump motor is outside of the predetermined operating limits and shuts down the dishwasher (1; 100). a docking system comprising at least one plug disposed on the rack (13; 14) and configured to dock with the at least one docking hole of the water supply tube on condition that the rack (13; 14) is in an operational position within the dishwasher (1; 100); characterized by a controller configured to sense a load on the pump motor of the pump for pumping water to the water supply tube and determine if the load on the pump motor is within predetermined operating limits, wherein, on condition that the rack (13; 14) is removed from the operational position within the dishwasher (1; 100) and the at least one plug is not docked with the water supply tube such that water flows out of the at least one docking hole, the controller is configured to sense that the load on the pump motor is outside of the predetermined operating limits and shuts down the dishwasher (1; 100).