Created inherited method cleanup in device, and have effects by default clean up all devices in their list from the cleanup() call