add a sleep after sending the connected message