A method of operating a data storage device configured to connect to a host compute device via a power bus and at least one data bus, the data storage device comprising an input/output (I/O) port configured to receive power from the power bus to operate the data storage device, and provide data to and receive data from the host compute device via the at least one data bus, and a timer configured to open a timing window in response to receiving a cache flush command from the host compute device and close the timing window after a predetermined amount of time has expired or a host write command is received, the method comprising:
- detecting that the power from the host compute device is removed from the data storage device;
- determining whether the timing window is closed;
- and
- providing a warning alarm to indicate improper removal of the power from the host compute device, in response to determining that the timing window is closed.