Seriously though. If you want your script be to be stable, always assume that any action has a chance to fail.
As a result of this, doing multiple things successively without checking what the current situation is, is generally a bad idea.
Example (pseudo):
bank.open();
sleep
bank.withdraw();
Assume that even after the call to bank.open(), the bank is still not open. An action can fail as a result of multiple factors. Most often being misclicks (caused by camera movements or whatnot), random event interrupt (Yes, they still interrupt your current action), lag or delays. For this reason, it's common practice to return from the main loop after every action, repeating the same action if it was not completed successfully in the previous loop.