If you are waiting for the instance to enter RESCUE mode, why do you need this sleep? I think this might be a result of setting the state directly to `RESCUE`.