Handle sleep mode when connecting

If it is sleeping when we connect - wake it up.