Added 5-second wait after disconnect