Bug 872976 - Delay the timing of restoring connection to decrease the failure rate

To make restore connection feature more stable, I made two changes:

1. Stop discovering before connect. I've done the same thing before, see bug 873352 for more information.
2. Delay 5 seconds for restoring connection.