Add a one second sleep after deconnecting. Prevents problems.