```
if(power_lock_state(pstate, 0) != 0) {
   fprintf(stderr, "Can't lock the state of the platform. \n");
   // FIXME: We need to throw an exception here.
}
```