If the login handler fails at logging back in the script will automatically stop, sometimes it fails to stop the script which is why you see that the script is still 'running'. There are a few reasons why the login handler failed:
1. Your account is banned.
2. You lost connection/servers are down.
3. The login info is wrong.
4. Too many connections from your ip.
Check the logger, it usually has the reason why it wasn't able to log you back in.