The status never changed from 'Shutting down' to 'offline' and 'Waking Up' to 'Online' because comparing like 'if (this.status === (Status.Offline || Status.ShuttingDown))' does not work.
If shutdown or wake up fails the status should change back to 'Offline' or 'Online'.
The status never changed from 'Shutting down' to 'offline' and 'Waking Up' to 'Online' because comparing like 'if (this.status === (Status.Offline || Status.ShuttingDown))' does not work. If shutdown or wake up fails the status should change back to 'Offline' or 'Online'.