Gen I: Fix Rest.

- Failure due to HP should come before setting sleep.