Catching and preventing hard sleep