If you bot in public rooms, it's bound to lag. I used to crash all the time, but when we moved to a new area and the internet worked better, I started disconnecting way less, so I guess it's a problem with your internet. Try closing all operations that use internet before botting, or bot in private rooms.