On which event? In which case it could be interrupted?

The reason for waiting is to give some time for the server to come back. There is no such event "you can connect now". Or did I misunderstand the question?